<?xml version="1.0" encoding="windows-1252"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>

    </h:head>
    <h:body>

        <ui:composition template="WEB-INF/facelets/Template.xhtml">
            <ui:define name="content">
                <h:form>
                    Name <h:inputText id="name" value="#{UploadBean.name}"/> <br/>
                    Category: <h:selectOneMenu value="#{UploadBean.category}">
                        <f:selectItems
                            value="#{SupportBean.categories}" />
                    </h:selectOneMenu> <br/>

                    Location <h:inputText id="location" value="#{UploadBean.location}"/> <br/>
                    Size <h:inputText id="size" value="#{UploadBean.size}"/> <br/>
                    <h:commandButton id="buttonUpload" value="Upload"
                                     actionListener="#{UploadBean.uploadTorrent}"/>
                </h:form>
                <table>
                    <ui:repeat value="#{UploadBean.msgs}" var="msg">
                        <tr>
                            <td>#{msg}</td>
                        </tr>
                    </ui:repeat>
                </table>
            </ui:define>
        </ui:composition>

    </h:body>
</html>
